package com.wangyk.mybatis;

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.apache.logging.log4j.ThreadContext;

/**
 * 日志文件相关
 */
public class LogUtil
{
    private static Logger logger = LogManager.getLogger(LogUtil.class);

    /**
     * 给日志文件添加前缀
     */
    public static void initLogEnv()
    {
        ThreadContext.put("hostname", "10.159.62.241");
        ThreadContext.put("appname", "main-app");
    }
}
